<?php declare(strict_types=1);

namespace App\Http\Controller;

use Swoft\Http\Server\Annotation\Mapping\Controller;
use Swoft\Http\Server\Annotation\Mapping\RequestMapping;

/**
 * Class Index
 * @Controller()
 */
class Index
{
    /**
     * @RequestMapping(route="index")
     */
    public function index(){
        return "this index action";
    }

    /**
     * @RequestMapping(route="/get/{name}")
     */
    public function getName(string $name){
        return "getName:".$name;
    }
}